package com.shunya.diskorganizer.model.builder;

import com.shunya.diskorganizer.model.FileMetaData;
import com.shunya.diskorganizer.tinytypes.Name;
import com.shunya.diskorganizer.tinytypes.Owner;
import com.shunya.diskorganizer.tinytypes.Size;

public class FileMetaDataBuilder {
    private FileMetaData fileMetaData;

    public FileMetaDataBuilder() {
        this.fileMetaData = new FileMetaData();
    }

    public FileMetaData build() {
        return this.fileMetaData;
    }

    public FileMetaDataBuilder with(Name fileName) {
        this.fileMetaData.setFileName(fileName);
        return this;
    }

    public FileMetaDataBuilder with(Size size) {
        this.fileMetaData.setFileSize(size);
        return this;
    }

    public FileMetaDataBuilder with(Owner owner) {
        this.fileMetaData.setOwnerName(owner);
        return this;
    }
}
